package org.example.hypersonaltools.manager;

import javafx.scene.control.Button;
import javafx.scene.control.Labeled;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import lombok.Getter;
import org.example.hypersonaltools.scene.EStickyNoteScene;

import java.util.HashMap;
import java.util.Map;

@Getter
public class TagManager {
    private final Map<String, Labeled> tags = new HashMap<>();
    private static TagManager tagManager;

    private TagManager() {
        SceneManager sceneManager = SceneManager.getInstance();
        Button deepSeek = new Button("deepSeek");
        deepSeek.setOnAction(actionEvent -> sceneManager.switchChildScene("primaryScene","deepSeek"));
        tags.put("标签1", deepSeek);
        Button imgTool = new Button("图片格式转换");
        imgTool.setOnAction(actionEvent -> sceneManager.switchChildScene("primaryScene","imgTool"));
        tags.put("标签2",imgTool);
        Button deskPet = new Button("桌宠");
        deskPet.setOnAction(actionEvent -> sceneManager.switchChildScene("primaryScene","deskPet"));
        tags.put("标签3",deskPet);
        Button booksReadTools = new Button("阅读器");
        booksReadTools.setOnAction(actionEvent -> sceneManager.switchChildScene("primaryScene","booksReadTools"));
        tags.put("标签4",booksReadTools);

        Button eStickyNote = new Button("EStickyNote");
        eStickyNote.setOnAction(actionEvent -> new EStickyNoteScene(new Pane(),new Stage()));
        tags.put("标签5",eStickyNote);

        tags.put("标签6",new Button("eee"));
        tags.put("标签7",new Button("ggg"));
        tags.put("标签8",new Button("hhh"));
        tags.put("标签9",new Button("fff"));
        tags.put("标签10",new Button("uuu"));
        tags.put("标签11",new Button("iii"));
        tags.put("标签12",new Button("jjj"));
        tags.put("标签13",new Button("kkk"));
        tags.put("标签14",new Button("lll"));
        tags.put("标签15",new Button("nnn"));
    }

    public static TagManager getInstance() {
        if (tagManager == null) {
            tagManager = new TagManager();
        }
        return tagManager;
    }

}
